package com.lemurian.bankdata.lite.enums;

import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;

public enum UserType {

	MARKETING_HEAD(4),
	ADMINISTRATOR(3),
	LETTER_TYPIS(5),
	ACCOUNT_OFFICER(6),
	KEPALA_DIVISI(26);
	

    private int id;
    
    private static final Map<Integer, UserType> lookup = new HashMap<Integer, UserType>();

    static {
        for (UserType s : EnumSet.allOf(UserType.class)) {
            getLookup().put(s.id(), s);
        }
    }

    public static Map<Integer, UserType> getLookup() {
        return lookup;
    }

    UserType(int id) {
        this.id = id;
    }

	public int id() {
        return id;
    }
	
}